package com.oocl.euc.common.utils;
import org.dozer.DozerBeanMapper;
import org.dozer.Mapper;

public class EntityMapToVOUtil {
    private static final Mapper dozer = new DozerBeanMapper();

    public static <T> T map(Object source, Class<T> destinationClass) {
        if (source != null){
            return dozer.map(source, destinationClass);
        }else {
            return null;
        }
    }
}
